Repository navigation
Prepare repeatable CLI v1 releases from the maintenance branch - #828
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
Give stable CLI users a way to receive follow-up v1 patches without moving to CLI v2. The release workflow builds from
maintenance/cli-v1, not a copy of the package onmain. It does not change the Changesets workflow or thenexttag.config.payloadshape.releases/cli-v1.jsonto name the version in a release PR. The workflow installs from the locked dependencies, tests and packs only@reflag/cli, and validates the tarball against npmlatest. Pull requests never publish or receive npm publishing credentials.publish: truemerged to protectedmaintenance/cli-v1. It rechecks the branch head and that the tarball is exactly the next stable v1 patch before using thecli-v1-releaseenvironment and npm trusted publishing. It can only publish tolatest.First release and rollout
This PR requests 1.0.5 in dry-run mode. Merging it will build and validate the package without publishing. Before merging, make sure the branch has the required PR review, test, and security checks. Before enabling live publication:
main.cli-v1-releaseenvironment tomaintenance/cli-v1. Configure npm trusted publishing forpublish-cli-v1.ymlwith that environment, leaving the existing v2 publisher in place.publish: true. Verifylatestbecomes1.0.5andnextis unchanged. If needed, an npm maintainer can restorelatestto1.0.4without changingnext.For later patches, update the CLI version and changelog, refresh the lockfile with Yarn, and update the release request in a reviewed PR.
Verification
actionlint.@reflag/[email protected]; nothing was published.